<?php
namespace Home\Controller;
use Common\Model\ConsumerModel;
use Think\Controller;
use Common\Model\ConsumerObject;
use Think\Model;

class Shangpinxiangqing1Controller extends Controller {
    /**
     *主页控制器
     */
    public function index(){
//        $model=D('Consumer');
//        /** @var ConsumerObject $consumer */
//        $consumer=$model->fetch(1);
//        $shoppingcart=$consumer->fetchShoppingcart();
//        foreach($shoppingcart as $value){
//            print_r($value->Goods->Name);
//        }
//        $order=$consumer->fetchOrder();
//        foreach($order as $value){
//            print_r($value->Goods->Price);
//        }

        $this->display();
    }
}